#pragma once
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

class Car
{
private:
	string brand;
	int year;
	double price;
public:
	Car();
	Car(string brand, int year, double price);
	~Car();
	
	//get
	string getBrand() { return brand; }
	int getYear() { return year; }
	double getPrice() { return price; }
	//set
	void setBrand(string brand) { this->brand = brand; }
	void setYear(int year) { this->year = year; }
	void setPrice(double){ this->price = price; }

	void writeToConsole();
	void readFromConsole();

};

